package com.cgbl.service.ui

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import com.cgbl.service.BR
import com.cgbl.service.R
import com.cgbl.service.databinding.FragmentWorkBinding
import com.cgbl.service.vm.WorkViewModel
import com.robot.base.base.activity.GLBaseFragment

class WorkFragment : GLBaseFragment<FragmentWorkBinding, WorkViewModel>() {
    override fun initContentView(
        inflater: LayoutInflater?, container: ViewGroup?, savedInstanceState: Bundle?
    ): Int = R.layout.fragment_work

    override fun initVariableId(): Int = BR.viewModel

    override fun initComponents() {
        initTiterBar()
    }

    private fun initTiterBar() {
        val titleView = activity?.findViewById<TextView>(R.id.tv_title)
        val backView = activity?.findViewById<ImageView>(R.id.iv_back)
        titleView?.text = "工作台"
        backView?.visibility = View.GONE
    }
}